{"ast":null,"code":"var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport { List } from 'rc-field-form';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport warning from '../_util/warning';\nimport { FormItemPrefixContext } from './context';\nvar FormList = function FormList(_a) {\n  var customizePrefixCls = _a.prefixCls,\n    children = _a.children,\n    props = __rest(_a, [\"prefixCls\", \"children\"]);\n  process.env.NODE_ENV !== \"production\" ? warning(!!props.name, 'Form.List', 'Miss `name` prop.') : void 0;\n  var _React$useContext = React.useContext(ConfigContext),\n    getPrefixCls = _React$useContext.getPrefixCls;\n  var prefixCls = getPrefixCls('form', customizePrefixCls);\n  var contextValue = React.useMemo(function () {\n    return {\n      prefixCls: prefixCls,\n      status: 'error'\n    };\n  }, [prefixCls]);\n  return /*#__PURE__*/React.createElement(List, Object.assign({}, props), function (fields, operation, meta) {\n    return /*#__PURE__*/React.createElement(FormItemPrefixContext.Provider, {\n      value: contextValue\n    }, children(fields.map(function (field) {\n      return Object.assign(Object.assign({}, field), {\n        fieldKey: field.key\n      });\n    }), operation, {\n      errors: meta.errors,\n      warnings: meta.warnings\n    }));\n  });\n};\nexport default FormList;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","List","React","ConfigContext","warning","FormItemPrefixContext","FormList","_a","customizePrefixCls","prefixCls","children","props","process","env","NODE_ENV","name","useContext","getPrefixCls","contextValue","useMemo","status","createElement","assign","fields","operation","meta","Provider","value","map","field","fieldKey","key","errors","warnings"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/form/FormList.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport { List } from 'rc-field-form';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport warning from '../_util/warning';\nimport { FormItemPrefixContext } from './context';\nconst FormList = _a => {\n  var {\n      prefixCls: customizePrefixCls,\n      children\n    } = _a,\n    props = __rest(_a, [\"prefixCls\", \"children\"]);\n  process.env.NODE_ENV !== \"production\" ? warning(!!props.name, 'Form.List', 'Miss `name` prop.') : void 0;\n  const {\n    getPrefixCls\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('form', customizePrefixCls);\n  const contextValue = React.useMemo(() => ({\n    prefixCls,\n    status: 'error'\n  }), [prefixCls]);\n  return /*#__PURE__*/React.createElement(List, Object.assign({}, props), (fields, operation, meta) => /*#__PURE__*/React.createElement(FormItemPrefixContext.Provider, {\n    value: contextValue\n  }, children(fields.map(field => Object.assign(Object.assign({}, field), {\n    fieldKey: field.key\n  })), operation, {\n    errors: meta.errors,\n    warnings: meta.warnings\n  })));\n};\nexport default FormList;"],"mappings":"AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC;IAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,O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